﻿package Message.Public
{
    import Engine.RMI.*;
    import Framework.Serialize.*;

    public class EBossType extends Object
    {
        public var __value:int;
        public static const _EBossTypeNomarl:int = 0;
        public static const _EBossTypeTrap:int = 1;
        public static const _EBossTypeSwitch:int = 2;
        public static const _EBossTypeMachine:int = 3;
        public static const _EBossTypePassageFight:int = 4;
        public static const _EBossTypeBarrierFight:int = 5;
        public static const _EBossTypeEscortFight:int = 6;
        public static const _EBossTypeSkillAssist:int = 7;
        public static const _EBossTypePlayerRobot:int = 8;
        public static const _EBossTypePetRobot:int = 9;
        public static const _EBossTypeHook:int = 10;
        public static const _EBossTypeNpc:int = 20;
        public static const _EBossTypeCollect:int = 21;
        public static const _EBossTypePassage:int = 22;
        public static const _EBossTypeBarrier:int = 23;
        public static const _EBossTypeTouch:int = 24;
        public static const _EBossTypeEscort:int = 25;
        public static const _EBossTypeQuestion:int = 26;
        public static const _EBossTypeFlower:int = 27;
        public static const _EBossTypeCrossHole:int = 28;
        public static const _EBossTypeCrossField:int = 29;
        public static const _EBossTypeShareCollect:int = 30;
        public static const _EBossTypeTree:int = 31;
        public static const _EBossTypeSapling:int = 32;
        public static const _EBossTypeGuildTower:int = 33;
        public static const _EBossTypeCrossTiming:int = 34;

        public function EBossType(param1:int)
        {
            this.__value = param1;
            return;
        }// end function

        public function value() : int
        {
            return this.__value;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            param1.writeByte(this.__value);
            return;
        }// end function

        public static function convert(param1:int) : EBossType
        {
            return new EBossType(param1);
        }// end function

        public static function __read(param1:SerializeStream) : EBossType
        {
            var _loc_2:* = param1.readByte();
            if (_loc_2 < 0 || _loc_2 >= 35)
            {
                throw new MarshalException();
            }
            return EBossType.convert(_loc_2);
        }// end function

    }
}
